import { pubRequire } from '@utils/public'
const baseUrl = '/lives/types'
/*查询直播分类列表*/
export function getLiveTypes(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callbBack, errBack)
}
/*封禁主播*/
export function patchLiveStreamerClose(obj, callbBack, errBack) {
  return pubRequire(
    'patch',
    `${baseUrl}/${obj.id}/close`,
    obj,
    callbBack,
    errBack
  )
}
/*解禁主播*/
export function patchLiveStreamerOpen(obj, callbBack, errBack) {
  return pubRequire(
    'patch',
    `${baseUrl}/${obj.id}/open`,
    obj,
    callbBack,
    errBack
  )
}
/*修改直播才艺类型*/
export function putLiveType(obj, callbBack, errBack) {
  return pubRequire('put', `${baseUrl}/${obj.id}`, obj, callbBack, errBack)
}
/*修改直播才艺类型*/
export function addLiveType(obj, callbBack, errBack) {
  return pubRequire('post', `${baseUrl}`, obj, callbBack, errBack)
}
